<template>
	<view>
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<block v-for="(item, index) in resdata" :key="index">
				<swiper-item>
					<view class="swiper-item" @click="event(item,index)">
						<image :src="item.src" lazy-load style="height: 350upx;"></image>
					</view>
				</swiper-item>
			</block>
		</swiper>
	</view>
</template>

<script>
export default {
	props:{
		resdata: Array
	},
	
	data() {
		return {};
	},
	methods: {
		event(item,index) {
			console.log("点击了轮播图 item = ",item);
			console.log("点击了轮播图 index = ",index);
		}
	},
};
</script>

<style></style>
